﻿using System;
using System.ComponentModel.DataAnnotations;

namespace HotelManageSystem.Domain.Entities
{
    /// <summary>
    /// Class Name：  货品退货
    /// Author:       Fei Wang
    /// Creation Date: 2011-12-29
    /// Description:  退货单号同样以时间，规则“BACKPRODUCT20111230105310”
    /// QA:
    /// </summary>
   public  class BackProduct
    {
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Required]
        public string  ID { get; set; }
        [Required]
        public double Outprice { get; set; }
        [Required]
        public int Count { get; set; }
        [Required]
        public double Total { get; set; }
        [Required]
        public DateTime time { get; set; }
        [Required]
        public string PrincipalName { get; set; }
        
        public virtual Product Product { get; set;}
        public virtual Inventory Inventory { get; set; }
        public virtual ProductProvider ProductProvider { get; set; }
        public virtual Employee Employee { get; set; }

    }
}
